package com.team.arms.political.service.impl;

import com.team.arms.political.domain.ZPoliRecord;
import com.team.arms.political.mapper.ZPoliRecordMapper;
import com.team.arms.political.service.IZPoliRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * mapperService业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-16
 */
@Service
public class ZPoliRecordServiceImpl implements IZPoliRecordService 
{
    @Autowired
    private ZPoliRecordMapper zPoliRecordMapper;

    /**
     * 查询mapper
     * 
     * @param poliRecordId mapper主键
     * @return mapper
     */
    @Override
    public ZPoliRecord selectZPoliRecordByPoliRecordId(String poliRecordId)
    {
        return zPoliRecordMapper.selectZPoliRecordByPoliRecordId(poliRecordId);
    }

    /**
     * 查询mapper列表
     * 
     * @param zPoliRecord mapper
     * @return mapper
     */
    @Override
    public List<ZPoliRecord> selectZPoliRecordList(ZPoliRecord zPoliRecord)
    {
        return zPoliRecordMapper.selectZPoliRecordList(zPoliRecord);
    }

    /**
     * 新增mapper
     * 
     * @param zPoliRecord mapper
     * @return 结果
     */
    @Override
    public int insertZPoliRecord(ZPoliRecord zPoliRecord)
    {
        return zPoliRecordMapper.insertZPoliRecord(zPoliRecord);
    }

    /**
     * 修改mapper
     * 
     * @param zPoliRecord mapper
     * @return 结果
     */
    @Override
    public int updateZPoliRecord(ZPoliRecord zPoliRecord)
    {
        return zPoliRecordMapper.updateZPoliRecord(zPoliRecord);
    }

    /**
     * 批量删除mapper
     * 
     * @param poliRecordIds 需要删除的mapper主键
     * @return 结果
     */
    @Override
    public int deleteZPoliRecordByPoliRecordIds(Long[] poliRecordIds)
    {
        return zPoliRecordMapper.deleteZPoliRecordByPoliRecordIds(poliRecordIds);
    }

    /**
     * 删除mapper信息
     * 
     * @param poliRecordId mapper主键
     * @return 结果
     */
    @Override
    public int deleteZPoliRecordByPoliRecordId(Long poliRecordId)
    {
        return zPoliRecordMapper.deleteZPoliRecordByPoliRecordId(poliRecordId);
    }
}
